Optimal. Leaf size=17 \[ a x-\frac {b \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {3556}
\begin {gather*} a x-\frac {b \log (\cos (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rubi steps
\begin {align*} \int (a+b \tan (c+d x)) \, dx &=a x+b \int \tan (c+d x) \, dx\\ &=a x-\frac {b \log (\cos (c+d x))}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 17, normalized size = 1.00 \begin {gather*} a x-\frac {b \log (\cos (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 22, normalized size = 1.29
method | result | size |
default | \(a x +\frac {b \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2 d}\) | \(22\) |
norman | \(a x +\frac {b \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2 d}\) | \(22\) |
derivativedivides | \(\frac {\frac {b \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2}+a \arctan \left (\tan \left (d x +c \right )\right )}{d}\) | \(29\) |
risch | \(i b x +\frac {2 i b c}{d}+a x -\frac {b \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{d}\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 16, normalized size = 0.94 \begin {gather*} a x + \frac {b \log \left (\sec \left (d x + c\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.13, size = 27, normalized size = 1.59 \begin {gather*} \frac {2 \, a d x - b \log \left (\frac {1}{\tan \left (d x + c\right )^{2} + 1}\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 24, normalized size = 1.41 \begin {gather*} a x + b \left (\begin {cases} \frac {\log {\left (\tan ^{2}{\left (c + d x \right )} + 1 \right )}}{2 d} & \text {for}\: d \neq 0 \\x \tan {\left (c \right )} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 18, normalized size = 1.06 \begin {gather*} a x - \frac {b \log \left ({\left | \cos \left (d x + c\right ) \right |}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.98, size = 21, normalized size = 1.24 \begin {gather*} a\,x+\frac {b\,\ln \left ({\mathrm {tan}\left (c+d\,x\right )}^2+1\right )}{2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________